<?php
class Giao_vien extends Giaovien{
     static function getNoiCongTac($giaovien_id){
        $criteria = new CDbCriteria();
        $criteria->condition='user_id='.$giaovien_id;
        $criteria->limit=1;
        $name = Giaovien::model()->findAll($criteria);
        foreach($name as $r){
                return $r->giaovien_noicongtac;
        }
    }
    static function getHocVi($giaovien_id){
        $criteria = new CDbCriteria();
        $criteria->condition='user_id='.$giaovien_id;
        $name = Giaovien::model()->findAll($criteria);
        foreach($name as $r){
                return $r->giaovien_hocvi;
         }
    }
}

?>